<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<div th:replace="fragment/headFragment:: head"></div>
<body class="cbp-spmenu-push">
	<div class="main-content">
		<!--left-fixed -navigation-->
		<div th:replace="fragment/left_sidebar::left_sidebar"></div>
		<!--left-fixed -navigation-->
		<!-- header-starts -->
		<div th:replace="fragment/header_section::header_section"></div>
		<!-- //header-ends -->
		<!-- main content start-->
		<div id="page-wrapper">
			<div class="main-page">
				<h3 class="title1">系统消息</h3>
				<div class="grid_3 grid_5 widget-shadow">
<!--					<form th:action="@{/systemMessage/select}">-->
<!--						输入id进行查询：-->
<!--						<input name="id" th:attr="value=${sm.getId()}">-->
<!--						<input type="submit" value="查询">-->
<!--					</form>-->
					<a href="http://localhost:80/systemMessage/add">
						<button type="button" class="btn btn-default">添加</button>
					</a>
					<table class="table">
						<thead>
						<tr>
							<th>id</th>
							<th>title</th>
							<th>createTime</th>
							<th>content</th>
							<td>操作</td>
						</tr>
						</thead>
						<tbody>
						<tr th:each="sm, rowInfo : ${lists}">
							<td th:text="${rowInfo.count}"></td>
							<td th:text="${sm.getTitle()}"></td>
							<td th:text="${sm.getCreatetime()}"></td>
							<td th:text="${sm.getContent()}"></td>
							<td>
								<a th:href="@{/systemMessage/delete(id = ${sm.getId()},current=${#request.getParameter('current')},size=5)}">删除</a>
								<a th:href="@{/systemMessage/update(id = ${sm.getId()},current=${#request.getParameter('current')},size=5)}">修改</a>
						</tr>
						</tbody>
					</table>
					<a th:href="@{/systemMessage/index(current=1,size=5)}">首页</a>
					<a th:href="@{/systemMessage/index(current=${i},size=5)}" th:each="i : ${#numbers.sequence(1,pagesCount)}"><span th:text="${i}" style="border: 1px solid #e3e3e3; height: 16px;width: 16px;text-align: center;vertical-align: middle;padding-left: 5px;padding-right: 5px;margin-left: 10px">1</span> </a>
					<a th:href="@{/systemMessage/index(current=${pagesCount},size=5)}">尾页</a>
				  </div>
			</div>
		</div>
		<!--footer-->
		<div class="footer">
			<p>Copyright &copy; 2021.Igeek All rights reserved.</p>
		</div>
        <!--//footer-->
	</div>
	<!-- Classie -->
		<script src="js/classie.js"></script>
		<script>
			var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
				showLeftPush = document.getElementById( 'showLeftPush' ),
				body = document.body;
				
			showLeftPush.onclick = function() {
				classie.toggle( this, 'active' );
				classie.toggle( body, 'cbp-spmenu-push-toright' );
				classie.toggle( menuLeft, 'cbp-spmenu-open' );
				disableOther( 'showLeftPush' );
			};
			
			function disableOther( button ) {
				if( button !== 'showLeftPush' ) {
					classie.toggle( showLeftPush, 'disabled' );
				}
			}
		</script>
	<!--scrolling js-->
	<script src="js/jquery.nicescroll.js"></script>
	<script src="js/scripts.js"></script>
	<!--//scrolling js-->
	<!-- Bootstrap Core JavaScript -->
	<script src="js/bootstrap.js"> </script>
</body>
</html>